const mysql = require("mysql2/promise");

let connetion;

module.exports = {
    async initDB() {
        connetion = await mysql.createConnection({
            host: "localhost",
            user: "root",
            password: "123456",
            database: "photos"
        })
    },
    getDB() {
        return connetion;
    }
}